<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='zh-CN' xml:lang='zh-CN' xmlns='http://www.w3.org/1999/xhtml'>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta http-equiv="Content-Language" content="zh-CN"/>
        <meta name="robots" content="index, follow" />
        <link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico" />
        <title>氿上网</title>
        <?php echo $this->_var['system_css']; ?>
        <?php echo $this->_var['system_js']; ?>
    </head>
    <body>
        <div id="OSC_Screen">
            <?php echo $this->fetch('header.html'); ?>
            <div id="OSC_Content" class='CenterDiv'>
                <?php echo $this->fetch('user_nav.html'); ?>
                <?php echo $this->fetch('message.html'); ?>
                <div class="MainForm" id="reg_page">
                <p>接收：<a href="/usermessage/receive_new">未读</a> | <a href="/usermessage/receive_readed">已读</a> | <a href="/usermessage/system">系统</a> | <a href="/usermessage/send">发送信息</a></p>
                     <p>发送：<a href="/usermessage/send_list">已发送</a></p>
                    
                    <table width="100%" cellspacing="0" style="border:1px solid #ccc;">
                        <thead style="border:1px solid #ccc;">
                            <tr >
                                <th width="20%" style="border:1px solid #ccc;">标题</th>
                                <th width="20%" style="border:1px solid #ccc;">头像</th>
                                <th width="20%" style="border:1px solid #ccc;">用户名</th>
                                <th style="border:1px solid #ccc;">时间</th>
                                <th style="border:1px solid #ccc;">操作</th>
                            </tr>
                        </thead>
                        <tbody style="border:1px solid #ccc;">
                            <?php $_from = $this->_var['message_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');if (count($_from)):
    foreach ($_from AS $this->_var['list']):
?>
                            <tr class="goods_div_<?php echo $this->_var['list']['id']; ?>">
                                <td  style="border:1px solid #ccc;" width="30%"><?php echo $this->_var['list']['title']; ?></td>
                                <td style="border:1px solid #ccc;" ><img src="<?php echo $this->_var['list']['avatar']; ?>" width="100" height="100"></td>
                                <td style="border:1px solid #ccc;" ><?php if ($this->_var['list']['username'] == ''): ?>系统<?php else: ?><?php echo $this->_var['list']['username']; ?><?php endif; ?></td>
                                <td style="border:1px solid #ccc;" ><?php echo Date::timeformat($this->_var['list']['add_time'],3); ?></td>
                                <td style="border:1px solid #ccc;" >
                                    <a href="/usermessage/view/<?php echo $this->_var['list']['id']; ?>" >查看</a> | 
                                    <a href="javascript:void(0);" class="delete" title="<?php echo $this->_var['list']['title']; ?>" id="<?php echo $this->_var['list']['id']; ?>">删除</a>
                                    <p class="msg_<?php echo $this->_var['list']['id']; ?>" style="color:red"></p>
                                </td>
                            </tr>  
                            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                        </tbody>
                        <tfoot><tr><td colspan="3"><?php echo $this->_var['page']; ?></td></tr></tfoot>
                    </table>

                    <div class='clear'></div>
                </div>

            </div>
            <div class='clear'></div></div>
        <div class='clear'></div>
        <?php echo $this->fetch('footer.html'); ?>
        </div>
     
    </body>
</html>
